package com.example.springboot_04.controller;


import com.example.springboot_04.custom.ListParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(path="get")
public class CustomController {
    @GetMapping(path = "self1")
    public String selfParam1(@ListParam(name="names") List<String> names , Integer age){
        return names+"_"+age;
    }

    @GetMapping(path = "self2")
    public String selfParam2(List<String> names , Integer age){
        return names+"_"+age;
    }

}
